package com.ruoyi.subject.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 小程序练题的抽题规则对象 t_qb_subject_rule
 *
 * @author lzhj
 * @date 2021-01-30
 */
public class SubjectRule extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    private Long id;

    /**
     * 题库类型
     */
    @Excel(name = "题库类型")
    private String category;

    /**
     * 类别
     */
    @Excel(name = "题目分类")
    private String subClass;

    /**
     * 权重
     */
    @Excel(name = "权重")
    private Float weight;

    /**
     * 单选题数
     */
    @Excel(name = "单选题数")
    private Integer single;

    /**
     * 单选题数
     */
    @Excel(name = "单选题数")
    private Integer multiple;

    /**
     * 判断题数
     */
    @Excel(name = "判断题数")
    private Integer judge;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setSubClass(String subClass) {
        this.subClass = subClass;
    }

    public String getSubClass() {
        return subClass;
    }

    public void setWeight(Float weight) {
        this.weight = weight;
    }

    public Float getWeight() {
        return weight;
    }

    public void setSingle(Integer single) {
        this.single = single;
    }

    public Integer getSingle() {
        return single;
    }

    public void setMultiple(Integer multiple) {
        this.multiple = multiple;
    }

    public Integer getMultiple() {
        return multiple;
    }

    public void setJudge(Integer judge) {
        this.judge = judge;
    }

    public Integer getJudge() {
        return judge;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("category", getCategory())
                .append("subClass", getSubClass())
                .append("weight", getWeight())
                .append("single", getSingle())
                .append("multiple", getMultiple())
                .append("judge", getJudge())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
